#/bin/sh
if [[ "$1" != "nodl" ]]; then
rm stpeter.osm.bz2
wget http://gis-lab.info/data/osm/stpeter/stpeter.osm.bz2
fi
osmosis \
    --read-xml file=stpeter.osm.bz2 \
    --tf accept-ways highway=* \
    --tf accept-ways name=* \
    --tf accept-relations type=collection,street \
    --used-node \
    --write-xml file=stpeter.osm
